<?php

abstract class Abstracts extends CI_Model{
	
	const ERR_REDIS_CONNECTED_FAILED = "RDB0002:链接数据库服务器失败";
	const ERR_REDIS_AUTH_FAILED = "RDB0003:登录数据库服务器失败";
	const ERR_REDIS_SELECTDB_FAILED = "RDB0004:无法找到数据库";
	const ERR_REDIS_SET_FAILED = "RDB0005:插入数据失败";
	const ERR_REDIS_MULTIGET_PARAM = "RDB0006:setMulti()参数不正确";
	const ERR_REDIS_INSERT_DUPLICATION = "RDB0007:InsertTable()函数错误,发现重复数据";
	const ERR_REDIS_REMOVE = "RDB0008:删除记录错误";
	const ERR_REDIS_TRANSCATION_FAILED = "RDB0009:事物启动失败";
	const ERR_REDIS_APPKEY_INVALID = 'RDB0010:无效的应用KEY';
	const ERR_REDIS_SETEX_FAILED = "RDB0011:插入带过期时间的数据失败";
	
	protected $_redis;		
		
	public function __construct(){
		
		$this->_redis = new Redis();
		//var_dump($redisParam);
		//exit();
		self::setRedisAppKey() ;
		
		$this->_db = $this->db;
	}
	
}